package com.moyun.finance.repository;

import com.moyun.finance.entity.OrgDeptUserMid;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;


public interface OrgDeptUserMidRepository extends JpaRepository<OrgDeptUserMid,String>, JpaSpecificationExecutor<OrgDeptUserMid> {
    List<OrgDeptUserMid> findByDeptId(String deptId);
    List<OrgDeptUserMid> findByUserId(String userId);
    void deleteByUserId(String userId);
}
